public class Test001 {
    public static void main(String[] args) {
        java.util.Scanner s = new java.util.Scanner(System.in);
        System.out.print("请输入您的年龄：");//输出提示信息
        int age = s.nextInt();//停下来等待用户输入
        String str = "老年";
        if(age<0 || age>150){
            str="您输入的年龄不合法，年龄需要在[0-150]之间";
        }else if (age<=5) {
            str = "幼年";
        }else if (age<=10) {
            str = "少年";
        }else if (age<=18) {
            str = "青少年";
        }else if (age<=35) {
            str = "青年";
        }else if (age<=55) {
            str = "中年";
        }else if (age<=150) {
            str = "老年";
        }
            System.out.println("您处于生命周期的"+ str +"阶段");
            }
        }